import api from '@/api/index.ts'

// 获取列表
export function GetData(params: any) {
  return api.get('/api/productshare/list', { params })
}
// 添加
export function PostproductshareData(params: any) {
  return api.post('/api/productshare/create', params)
}
// 获取详情
export function GetDetailData(id: string) {
  return api.get(`/api/productshare/detail/${id}`)
}
// 编辑
export function PutModifyData(params: any) {
  return api.put('/api/productshare/modify', params)
}
// 删除
export function Delete(id: any) {
  return api.delete(`/api/productshare/${id}`)
}
